//
//  DGNetWorkTools.m
//  DGCarDriver
//
//  Created by 彭利民 on 2018/4/8.
//  Copyright © 2018年 Bwton. All rights reserved.
//

#import "SJZNetWorkTools.h"


@implementation SJZNetWorkTools

+ (NSString *)requestSign:(NSString *)params {
    NSString *hashStr = [params hmac:params withKey:HMAC256Key];
    return hashStr;
}

+ (NSString *)timeStamp
{
    NSString *timeStr = [[NSDate date] getDateStringWithFormat:@"yyyyMMddHHmmss"];
    return timeStr;
}

+ (NSString *)random:(NSInteger)count {
    NSString *strRandom = @"";
    for(int i = 0; i < count; i++) {
        strRandom = [strRandom stringByAppendingFormat:@"%i",(arc4random() % 9)];
    }
    return strRandom;
}


+ (nonnull NSString *)requestSignatureBody:(nonnull NSString *)body
{
    
    return nil;
}

@end
